<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Facility Management</title>
<link rel="shortcut icon" href="<?php echo base_url() ?>static/images/logoTelkomsel-favico.png" />
</head>
<body>
	<div style="margin:0 auto; width:500px; font-family: 'Trebuchet MS', Trebuchet, Verdana, Helvetica, Arial, sans-serif;">
		<div>
			<div>
				<div style="float:left;">
					<img class="img-responsive" src="<?php echo base_url() ?>static/images/logo_telkomsel.png">
				</div>
				<div style="float:right;">
					<div style="float:right; padding-top:10px;"><span style="font-size:24px; font-weight:bold;">Overtime</span></div>
				</div>
				<div style="clear:both;" />
			</div>
			<div style="float:right;"><span style="font-size:24px; font-weight:bold;"><?php echo $rdetail['SO_ID'];?></span></div>
			<div style="clear:both;" />
		</div>
		<div>
			<table border="0" cellspacing="1" cellpadding="1" align="center" style="border:solid 1px black; font-size:12px;">	
				<tr> 
					<td width="90px">No Order</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_ID']; ?></td>
				</tr>
				<tr>
					<td>Requestor</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_NAME']; ?></td>
				</tr>
				<tr>
					<td>NIK</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_UNTUK_NIK']; ?></td>
				</tr>
				<tr>
					<td>No. HP</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_HP']; ?></td>
				</tr>
				<tr> 
					<td>Tanggal</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_SDATE']." - ".$rdetail['SO_EDATE']; ?></td>
				</tr>		
				<tr> 
					<td>Jam</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_SHOUR']." - ".$rdetail['SO_EHOUR']; ?></td>
				</tr>	
				<tr> 
					<td valign=top>Facility</td>
					<td valign=top>:</td>
					<td>
						<input name="pAc" type="checkbox" value="Y" <?php if($rdetail['SO_AC'] == "Y"){ echo "checked='checked'";} ?> disabled>&nbsp;Air Conditioner<br />
						<input name="pLift" type="checkbox" value="Y" <?php if($rdetail['SO_LIFT'] == "Y"){ echo "checked='checked'";} ?> disabled>&nbsp;Service Lift<br />
						<input name="pLighting" type="checkbox" value="Y" <?php if($rdetail['SO_LIGHTING'] == "Y"){ echo "checked='checked'";} ?> disabled>&nbsp;Lighting & Power
					</td>
				</tr>	
				<tr> 
					<td valign=top>Keterangan</td>
					<td valign=top>:</td>
					<td><?php echo $rdetail['SO_DESCRIPTION']; ?></td>
				</tr>	
				<tr> 
					<td valign=top>Overtime Name</td>
					<td valign=top>:</td>
					<td valign=bottom>
							
							<table cellpadding="1" cellspacing="1" width="99%" style="border:solid 1px black; border-collapse:collapse; font-size:12px;" >		
							<tr>
								<td width="5%" 	bgcolor="#dddddd" style="border:solid 1px black; text-align:center;">No</td>
								<td width="20%" bgcolor="#dddddd" style="border:solid 1px black; text-align:center;">Nama</td>
								<td width="10%" bgcolor="#dddddd" style="border:solid 1px black; text-align:center;">Lantai</td>
								<td width="10%" bgcolor="#dddddd" style="border:solid 1px black; text-align:center;">Ruang</td>
								<td width="20%" bgcolor="#dddddd" style="border:solid 1px black; text-align:center;">Company</td>
							</tr>	
							<?php
								$i=0;
								
								foreach($rdetailperson as $data)
								{
									$i++;
									
									echo "<tr>";
									echo "<td bgcolor=\"#FFFFFF\" style='border:solid 1px black; vertical-align:top; text-align:center;'>".$i.".</td>";
									echo "<td bgcolor=\"#FFFFFF\" style='border:solid 1px black; vertical-align:top; text-align:center;'>".$data['SOD_NAME']."</td>";				
									echo "<td bgcolor=\"#FFFFFF\" style='border:solid 1px black; vertical-align:top; text-align:center;'>".$data['SOD_FLOOR']."</td>";					
									echo "<td bgcolor=\"#FFFFFF\" style='border:solid 1px black; vertical-align:top; text-align:center;'>".$data['SOD_LOCATION']."</td>";
									echo "<td bgcolor=\"#FFFFFF\" style='border:solid 1px black; vertical-align:top; text-align:center;'>".$data['SOD_VENDOR_NAME']."</td>";
									echo "</tr>";	
									
								}
											
							?>				
							</table>	
					</td>
				</tr>	
				<tr> 
					<td>Nama Atasan</td>
					<td>:</td>
					<td><?php echo $rdetail['SO_MANAGER_NAME']; ?></td>
				</tr>		
				<tr> 
					<td valign=top>Comment</td>
					<td valign=top>:</td>
					<td><?php echo $rdetail['SO_COMMENT']; ?><br /><br /></td>
				</tr>		
			</table>	
		</div>
	</div>
	<div style="float:right;">
		<div id="PrintButton" class="helptips" style="visibility:visible">
			<input type="button" value="Print" class="button" onclick="hideButtonAndPrint();">	    
		</div>
	</div>
	<div style="clear:both;"></div>
	

	<script language="JavaScript">
		function hideButtonAndPrint() {
		  if (document.all["PrintButton"].style.visibility == "visible") {
			document.all["PrintButton"].style.visibility = "hidden";
			document.all["PrintButton"].style.display='none';
			javascript:window.print();	
			document.all["PrintButton"].style.visibility = "visible";
			document.all["PrintButton"].style.display='block';
		  }
		}
	</script>
</body>
</html>